
public class Master {

	public Master() {
		//protectedFn();
		//privateFn();
	}
	
	protected void protectedFn() {
		System.out.println("Master protected");
	}
	
	private void privateFn() {
		System.out.println("Master private");
	}
	
	public void doIt() {
		protectedFn();
		privateFn();
	}

	public static void main(String[] args) {
		Master master = new Slave();
		master.protectedFn();
	}

}
